from common.locate_by import By

class LocPlanTextDetail:

    loc_close = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.button,
        "loc_name": "关闭此对话框",
    }

    loc_name = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.textbox,
        "loc_name": "预案名称:",
    }
    loc_publish_number = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.textbox,
        "loc_name": "预案发布文号:",
    }
    loc_org_dept_id = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.combobox,
        "loc_name": "编制单位:",
        "seq": 1,
    }
    loc_unit_code = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.textbox,
        "loc_name": "单位编码:",
    }
    loc_phone = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.textbox,
        "loc_name": "联系电话:",
    }
    loc_area_code = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.combobox,
        "loc_name": "行政区划:",
        "seq": 2,
    }
    loc_level = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.combobox,
        "loc_name": "预案级别:",
        "seq": 3,
    }
    loc_type = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.combobox,
        "loc_name": "预案类型:",
        "seq": 4,
    }
    loc_upper_plans = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.combobox,
        "loc_name": "上位预案:",
        "seq": 5,
    }
    loc_link_plans = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.combobox,
        "loc_name": "关联预案:",
        "seq": 6,
    }
    loc_incident_type = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.combobox,
        "loc_name": "应对事故类型:",
        "seq": 7,
    }
    loc_implementation_time = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.combobox,
        "loc_name": "实施日期:",
    }
    loc_publish_time = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.combobox,
        "loc_name": "发布日期:",
    }
    loc_publish_org_id = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.combobox,
        "loc_name": "发布单位:",
        "seq": 8,
    }
    loc_evaluation_cycle = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.combobox,
        "loc_name": "定期评估周期:",
        "seq": 9,
    }
    loc_electronic_plan = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.group,
        "loc_name": "电子版应急预案:",
    }

    loc_preview = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.button,
        "loc_name": "预览",
    }
    loc_download = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.button,
        "loc_name": "下载",
    }

    loc_tabpanel_basic = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.tabpanel,
        "loc_name": "基础信息",
    }
    loc_tabpanel_edit = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.tabpanel,
        "loc_name": "修订记录",
    }
    loc_tabpanel_assess = {
        "page_role": By.dialog,
        "page_title": "查看",
        "loc_role": By.tabpanel,
        "loc_name": "评估记录",
    }
